package activity
import history.*

class Manual {
    String name
    String active = "N"//啟用
    Event event
    String subject
    String content
    String recipient
    Date schedule //寄送時間
    String done = "N"//寄送完成
    
    History history
    
    static constraints = {
        name(naullable:false)
        active(nullable:true,inList:["Y", "N"])
        event(naullable:false)
        subject(blank:false)
        content(blank:false,size:0..2000)
        recipient(nullable:false,size:0..10,inList:["免審","待審","審過","審拒","補到","自行取消","全部"])
        schedule(nullable:true)
        done(nullable:true,inList:["Y", "N"])
        history(nullable:true)
    }
}
